<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>配件执行</title>

    <!-- bootstrap -->
    <link href="__CSS__/bootstrap/bootstrap.css" rel="stylesheet" />

    <!-- libraries -->
    <!-- <link href="css/libs/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css" /> -->
    <link href="__CSS__/libs/font-awesome.css" type="text/css" rel="stylesheet" />

    <!-- global styles -->
    <link rel="stylesheet" type="text/css" href="__CSS__/compiled/layout.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/compiled/elements.css">

    <!-- this page specific styles -->
    <link rel="stylesheet" type="text/css" href="__CSS__/libs/bootstrap-wizard.css">
    <link rel="stylesheet" href="__CSS__/libs/select2.css" type="text/css" />

    <link rel="stylesheet" href="__CSS__/new.css"/>
    <link rel="stylesheet" href="__CSS__/table.css"/>
    <link rel="stylesheet" href="__CSS__/bootstrap-table.css"/>
    <link rel="stylesheet" href="__CSS__/bootstrap-table-fixed-columns.css"/>
    <link rel="stylesheet" href="__CSS__/other.css"/>

    <!-- Favicon -->
    <!--<link type="image/x-icon" href="favicon.png" rel="shortcut icon"/>-->

    <!-- google font libraries -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300|Titillium+Web:200,300,400' rel='stylesheet' type='text/css'>

    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-49262924-1', 'phoonio.com');
        ga('send', 'pageview');

    </script>
    <style>
        .main-box{
            min-height: 820px;
        }
        @media (max-width:1320px){
            .main-box{
                min-height: 700px;
            }
        }

        .fixed-table-body-columns{
            height: 486px!important;
            top: 47px!important;
        }
        .calCancel{
            float: right;
        }

        .wizard-modal.modal{
            width:680px!important;
            /*height: 360px!important;*/
            margin-left: -336px!important;
        }

        /*固定前两列宽度设置*/
        .addWidth{
            width: 86px;
        }
    </style>
</head>
<body>
<!--head-->
{include file="pub/head"/}

<div class="container" role="main">
    <div class="row">

        <!--left-->
        {include file="pub/left"/}

        <div class="col-md-10" id="content-wrapper">
            <!--<h2 class="pull-left">Last orders</h2>-->
            <div class="row">
                <div class="col-lg-12">
                    <!--<div class="row">
                        <div class="col-lg-12">-->
                    <div class="main-box">
                        <!--提示框-->
                        {include file="pub/tips"/}

                        <div class="clear-fix">
                            {if condition="in_array('Order/exportExec',$ownways)"}
                            <a href="{:url('Order/exportExec')}" class="btn btn-primary">
                                <i class="fa fa-download fa-lg"></i> 导出配件执行列表
                            </a>
                            {/if}
                        </div>
                        <!--搜索页-->
                        <div class="col-sm-12 col-md-12 col-lg-12 col-xs-12" style="margin-top: 16px;">
                            {include file="ord/searchexec"/}
                        </div>
                        <div class="table-responsive clearfix">
                            <table id="fixedTable" class="table table-striped jambo_table table-hover" data-toggle="table">
                                <thead>
                                <tr>
                                    <th class="text-center"><span>订单评审号</span></th>
                                    <th><span>国家 客户</span></th>
                                    <!--配件-->
                                    <th><span>配件</span></th>
                                    <th><span>配件数量</span></th>

                                    <th><span>下单联系人</span></th>

                                    <th><span>生产状态</span></th>
                                    <th><span>生产负责人</span></th>
                                    <th><span>备注</span></th>
                                    <th class="text-center"><span>操作</span></th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="orders" id="v"}
                                <tr>
                                    <td class="addWidth">{$v.oid}</td>
                                    <td>{$v.state} {$v.client}</td>

                                    <!--配件-->
                                    <td>{$v.fitting}</td>
                                    <td>{$v.fid_num}</td>

                                    <td>{$v.order_placer}</td>
                                    {if condition="$v['deliver_status'] eq '0'"}
                                    <td>已完成</td>
                                    {elseif condition="$v['deliver_status'] eq '1'"}
                                    <td>生产中</td>
                                    {elseif condition="$v['deliver_status'] eq '2'"}
                                    <td>未下单</td>
                                    {elseif condition="$v['deliver_status'] eq '3'"}
                                    <td>待组装</td>
                                    {elseif condition="$v['deliver_status'] eq '5'"}
                                    <td>未执行</td>
                                    {else/}
                                    <td>组装中</td>
                                    {/if}
                                    <td>{$v.product_principle}</td>
                                    <td>{$v.other}</td>
                                    <td>

                                        <!--子订单-->
                                        {if condition="in_array('Order/esave',$ownways)"}
                                        <a class="table-link" href="#" onclick=edit("{$v['oid']}") title="修改状态">
                                            <span class="fa-stack">
                                                <i class="fa fa-square fa-stack-2x"></i>
                                                <i class="fa fa-pencil-square fa-stack-1x fa-inverse"></i>
                                            </span>
                                        </a>
                                        {/if}

                                    </td>
                                </tr>
                                {/volist}

                                </tbody>
                            </table>
                            <!--分页-->
                            <div style="text-align: center;">
                                {$page}
                            </div>
                        </div>

                        <!--修改弹出框-->
                        <!--修改状态-->
                        {include file="ord/estatus"/}

                        {include file="ord/edit"/}

                    </div>
                </div>
            </div>

            <!--</div>
        </div>-->
        </div>
    </div>
</div>
<!--foot-->
{include file="pub/foot"/}

<!-- global scripts -->
<script src="__JS__/jquery.js"></script>

<script src="__JS__/bootstrap.min.js"></script>

<!-- this page specific scripts -->
<script src="__JS__/bootstrap-wizard.js"></script>
<script src="__JS__/select2.min.js"></script>

<!-- theme scripts -->
<script src="__JS__/scripts.js"></script>
<script src="__JS__/bootstrap-table.js"></script>
<script src="__JS__/bootstrap-table-fixed-columns.js"></script>
<script>
    $('#fixedTable').bootstrapTable('destroy').bootstrapTable({

        fixedColumns: true,  //固定列
        fixedNumber:2,   //固定前两列
        rightFixedColumns: true,
        rightFixedNumber: 1
    })


    $('#sel2').select2();

    $.fn.wizard.logging = false;

    var foredit = $("#wizard-edit").wizard({
        showCancel: true
    });

    var foreditstatus = $("#wizard-est").wizard({
        showCancel: true
    });

    $(".wizard-group-list").click(function() {
        alert("Disabled for demo.");
    });

    $("#open-wizard").click(function() {
        wizard.show();
        /*$('.wizard-cancel').text('取消');
        $('.wizard-back').text('上一步')
        $('.wizard-next').text('下一步');
        $('.btn-success').text('确定')*/
    });

    //wizard.show();

    $("#msg").addClass('forhid')

    function changeText(msg, code) {
        $('#sp').text(msg)
        if(code != 1){
            $('#img').attr('src', '__IMG__/fail.png')
        }
        $("#msg").removeClass('forhid')
        setTimeout("showOrHid()", 2000)
    }
    function showOrHid() {
        //console.log('123')
        /*淡出效果*/
        $("#msg").fadeOut(2000)
        // $("#msg").addClass('forhid')
    }

</script>
</body>
</html>